package alex.rsx.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import alex.rsx.activity.r.R;
import android.content.Context;
import android.widget.SimpleAdapter;

public class TestData {

	public static SimpleAdapter testAdapter(Context context){
		
		
		List<Map<String, String>> data = new ArrayList<Map<String, String>>();
		for (int i = 0; i < 10; i++) {
			Map<String, String> map = new HashMap<String, String>();
			map.put("title", "新闻" + i);
			data.add(map);
		}
		
		SimpleAdapter adapter = new SimpleAdapter(context, data,
				R.layout.news_list_item, new String[] { "title" },
				new int[] { R.id.news_list_item_title });
		return adapter;
	}
	
	public static List<String> testList(){
		
		ArrayList<String> array = new ArrayList<String>();
		for (int i = 0; i < 10; i++) {
			array.add("那些年流啊"+i);
		}
		
		return array;
	}
}
